const App = getApp();
Page({
  show: function () {
    this.setData({
      show: true
    })
  },
  xuexiao: function () {
    wx.navigateTo({
      url: '../ruxue/ruxue',
      success: function (res) {},
      fail: function (res) {},
      complete: function (res) {},
    })
  },
  zhuangye: function () {
    wx.navigateTo({
      url: '../zhuangye/zhuangye',
      success: function (res) {},
      fail: function (res) {},
      complete: function (res) {},
    })
  },
  huanjing: function () {
    wx.navigateTo({
      url: '../huanjing/huangjing',
      success: function (res) {},
      fail: function (res) {},
      complete: function (res) {},
    })
  },
  shetuan: function () {
    wx.navigateTo({
      url: '../shetuan/shetuan',
      success: function (res) {},
      fail: function (res) {},
      complete: function (res) {},
    })
  },
  jiangxuejin: function () {
    wx.navigateTo({
      url: '../jiangxuejin/jiangxuejin',
      success: function (res) {},
      fail: function (res) {},
      complete: function (res) {},
    })
  },
  shitang: function () {
    wx.navigateTo({
      url: '../shitang/shitang',
      success: function (res) {},
      fail: function (res) {},
      complete: function (res) {},
    })
  },
  taolun: function () {
    wx.showModal({
      title: '问答区',
      content: '此处正在火速加载中...请耐心等待',
      success: function (res) {
        if (res.confirm) {
          // console.log('用户点击确定')
        } else {
          // console.log('用户点击取消')
        }

      }
    })
  },
  // close(){
  //   this.setData({
  //     c:true
  //   })
  //   this.onClose()
  // },
  onClose() {
    // if(this.data.c==true){
    this.setData({
      show: false
    });
    // }

  },
  t_wode() {
    wx.navigateTo({
      url: '../wode/wode',
    })
  },
  isShowB() {
    let isShowBottom = !this.data.isShowBottom
    this.setData({
      isShowBottom: isShowBottom
    })
  },
  lostshowB(){
    this.setData({
      isShowBottom: false
    })
  },
  xiaoli(){
    wx.previewImage({
      current: 'cloud://xly-q0mdi.786c-xly-q0mdi-1301304205/xiaoli.jpg',
      urls:['cloud://xly-q0mdi.786c-xly-q0mdi-1301304205/xiaoli.jpg']
    })
  },
  onLoad: function () {
    this.setData({
      navH: App.globalData.navHeight
    })
  },




  data: {
    background: ['https://new-1301123167.cos.ap-chengdu.myqcloud.com/1.jpg', 'https://new-1301123167.cos.ap-chengdu.myqcloud.com/2.jpg', 'https://new-1301123167.cos.ap-chengdu.myqcloud.com/3.jpg', 'https://new-1301123167.cos.ap-chengdu.myqcloud.com/4.jpg', 'https://new-1301123167.cos.ap-chengdu.myqcloud.com/5.jpg'],
    indicatorDots: true,
    vertical: true,
    autoplay: true,
    circular: true,
    interval: 2000,
    duration: 500,
    show: false,
    // c:false,
    isLoad: true,
    isShowBottom: false
  }

})